import axios from '@/utils/request'
const base = '/movieserver'

export function saveMovieLevel(data) {
  return axios({
    url: `${base}/movieLevels`,
    method: 'post',
    data
  })
}

export function listMovieLevel(params) {
  return axios({
    url: `${base}/movieLevels`,
    method: 'get',
    params: params
  })
}

export function modifyMovieLevel(id, data) {
  return axios({
    url: `${base}/movieLevels/` + id,
    method: 'put',
    data
  })
}
